Pvrdtscp: move write_rdtscp_aux() to paravirt_ctxt_switch_to() -
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 14 Dec 2009 07:45:04 +0000 (07:45 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 14 Dec 2009 07:45:04 +0000 (07:45 +0000)
commitc16b168f1cd21cccb33964b2dae0bb5f482fb641
tree9493bf26771dfe53af76fcb9f6c5faded08e72d4
parentc174503e21a921514f3ad7a268992f295b20ff43
Pvrdtscp: move write_rdtscp_aux() to paravirt_ctxt_switch_to() -
Currently write_rdtscp_aux() is placed in update_vcpu_system_time(),
which is called by schedule() before context_switch(). This will break
the HVM guest TSC_AUX state because at this point, MSR hasn't beed
saved for HVM guests.So put the function in the point when a PV vcpu
is really scheduled in.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
xen/arch/x86/domain.c
xen/arch/x86/time.c